package com.project.hqshorttaxi.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

@Data
@Table(name = "B_Setting")
public class Setting implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * ID
     */
    @Id
    @Column(name = "ID")
    private Integer id;

    /**
     * 单日优惠最大次数限制
     */
    @Column(name = "DiscountNum")
    private Integer discountNum;

    /**
     * 有订单时，超时时间限制配置
     */
    @Column(name = "OrderTimeLimit")
    private Integer orderTimeLimit;

    /**
     * 有订单时，超时时间加时限制配置
     */
    @Column(name = "OrderTimeAddLimit")
    private Integer orderTimeAddLimit;

    /**
     * 订单开始前超时限制配置
     */
    @Column(name = "BeforeOrderTimeLimit")
    private Integer beforeOrderTimeLimit;

    /**
     * 订单结束后超时限制配置
     */
    @Column(name = "AfterOrderTimeLimit")
    private Integer afterOrderTimeLimit;

    /**
     * 短途最大路程长度限制
     */
    @Column(name = "OrderDistanceLimit")
    private Double orderDistanceLimit;

    /**
     * 优惠次数重置时间点的配置
     */
    @Column(name = "RefreshTime")
    private String refreshTime;

    /**
     * 是否离线
     */
    @Column(name = "offLine")
    private Integer offLine;

    /**
     * 重复扫描间隔秒数
     */
    @Column(name = "ReScanLimit")
    private Integer reScanLimit;

}
